<?php

namespace App\Models;

use App\Models\Traits\Btn;
use App\Observers\Apiuserobserver;
//继承可以使用auth登录的模型类
use Illuminate\Foundation\Auth\User as AuthUser;

//api验证方法
use Laravel\Passport\HasApiTokens;

use Illuminate\Database\Eloquent\SoftDeletes;


class Apiuser extends AuthUser
{
    use SoftDeletes,HasApiTokens,Btn;
    //软删除标识字段
    protected $guarded=[];
    protected $dates = ['deleted_at'];
    protected $table='apiusers';
    protected static function boot()
    {
        parent::boot();
        self::observe(Apiuserobserver::class);
    }
}
